package org.tony.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;


/**
 * 数据源实体对象
 * @author tony
 *
 */
public class DbEntry {
	
	private String id ;
	
	private String databaseType ;
	
	private String databaseName ;
	
	private String dataSourceIp ;
	
	private String driverClass ;
	
	private String username ;
	
	private String password ;
	
	private String regeUsername ;
	
	private String regDate ;
	
	private int port ;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDatabaseType() {
		return databaseType;
	}

	public void setDatabaseType(String databaseType) {
		this.databaseType = databaseType;
	}

	public String getDatabaseName() {
		return databaseName;
	}

	public void setDatabaseName(String databaseName) {
		this.databaseName = databaseName;
	}

	public String getDataSourceIp() {
		return dataSourceIp;
	}

	public void setDataSourceIp(String dataSourceIp) {
		this.dataSourceIp = dataSourceIp;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRegeUsername() {
		return regeUsername;
	}

	public void setRegeUsername(String regeUsername) {
		this.regeUsername = regeUsername;
	}

	public String getRegDate() {
		return regDate;
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}
	
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("databaseType",
				this.databaseType).append("regeUsername", this.regeUsername)
				.append("id", this.id).append("driverClass", this.driverClass)
				.append("databaseName", this.databaseName).append("username",
						this.username).append("password", this.password)
				.append("regDate", this.regDate).append("dataSourceIp",
						this.dataSourceIp).toString();
	}


}
